package com.kkw.shoppingmall.product.feign;

import com.kkw.common.utils.R;
import com.kkw.shoppingmall.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Kevin
 * @date 2021-06-21
 **/
@FeignClient(value = "shoppingmall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {


    @GetMapping(value = "/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
